package com.tang.core;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author Tang
 * @classname WebMvcConfig
 * @description [  ]
 * @date 2021/4/24 14:47
 */
@Configuration
public class WebMvcConfig implements WebMvcConfigurer {

    public WebMvcConfig() {

    }

    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        registry.addResourceHandler("/static/**")
                .addResourceLocations("classpath:/static/");
    }
}